package com.spark.teaching.sparkconfigclient;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 分布式配置中心客户端
 *
 * @author zhaoyiwu
 * @create 2017-10-09 15:11
 **/
@SpringBootApplication
@RestController
public class EurekaConfigClientApplication {

    public static void main(String[] args) {
        SpringApplication.run(EurekaConfigClientApplication.class, args);
    }

    @Value("${docker}")
    String docker;
    @RequestMapping(value = "/hi")
    public String hi(){
        return docker;
    }
}
